package com.heaven.constant;

import java.util.Map;

public class MessageConstants {
    //消息类型
    public static final Map<String, Integer> MESSAGE_TYPE = Map.of(
            "pong", -2,
            "ping", -1,
            "comment",0,
            "danmu",1,
            "private",2);

    //消息内容格式
    public static final Map<String, Integer> MESSAGE_CONTENT_FORMAT = Map.of(
            "text",0,
            "image",1,
            "video",2,
            "other",3);

    //消息缓存key,后接 {userId}-{userId}
    public static final String MESSAGE_CACHE = "MESSAGE_CACHE:";

    public static final String MESSAGE_CHAT_TARGET_KEY = "MSG_LOCK:";
}
